﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.DialogUI {
    import flash.utils.*;

    public class PermitBuyShareDialog extends GenericDialog {

        protected var m_PermitsRequired:int;
        protected var m_PermitOverrideCost:int;
        protected var m_Message:String;
        protected var m_Title:String;
        protected var m_DialogIcon:String;

        public function PermitBuyShareDialog(_arg1:int=0, _arg2:int=0, _arg3:Function=null, _arg4:Function=null, _arg5:String="PermitDialog_message", _arg6:String="PermitDialog", _arg7:String="assets/hud/buildables/permits.png", _arg8:int=12){
            this.m_PermitsRequired = _arg1;
            this.m_PermitOverrideCost = _arg2;
            this.m_Message = _arg5;
            this.m_Title = _arg6;
            this.m_DialogIcon = _arg7;
            m_type = _arg8;
            super(ZLoc.t("Dialogs", this.m_Message, {permitNumber:this.m_PermitsRequired.toString()}), this.m_Title, _arg8, _arg4, this.m_Title, this.m_DialogIcon, true, 0, "", _arg3);
        }
        override public function isLockable():Boolean{
            return (true);
        }
        override protected function createDialogView(_arg1:Dictionary):GenericDialogView{
            var _local2:PermitBuyShareDialogView = new PermitBuyShareDialogView(_arg1, m_message, m_dialogTitle, m_type, m_callback, m_icon, 0, this.m_PermitsRequired, this.m_PermitOverrideCost);
            return (_local2);
        }

    }
}//package Display.DialogUI 
